<?php

namespace App\Utils\Oss;


class OssService
{
	

	public static function OssUpload($file,$filepath){
		switch(config('my.oss_default_type')){
			case 'ali';
				$url = \App\Utils\Oss\AliOssService::upload($file,$filepath);	//七牛云上传
			break;
			
			case 'qiniuyun';
				$url = \App\Utils\Oss\QnyOssService::upload($file,$filepath);	//阿里上传
			break;
			
			case 'tencent';
				$url = \App\Utils\Oss\TencentOssService::upload($file,$filepath);	//腾讯云上传
			break;
		}
		return $url;
	}
	
	
	
	
	
}
